package cmarter.dev.chpt2.predicates;

import cmarter.dev.chpt2.interfaces.ApplePredicate;
import cmarter.dev.entities.Apple;

public class AppleColorPredicate implements ApplePredicate {
	String color;
	

	public AppleColorPredicate() {
	}

	public AppleColorPredicate(String color) {
		this.color = color;
	}
	
	@Override
	public boolean test(Apple apple) {
		return color.equals(apple.getColor());
	}	
}